package com.donfu.system.domain.house;

import com.donfu.common.annotation.Excel;
import com.donfu.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.util.Date;

/**
 * 商品规格参数可选值对象 house_spec_value
 *
 * @author donfu
 * @date 2021-12-06
 */
@ApiModel(description = "商品规格参数可选值对象")
public class HouseSpecValue implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 参数值ID, 可选参数值 */
    @ApiModelProperty(value = "参数值ID, 可选参数值")
    private Long id;

    /** 可选参数对应图片 */
    @ApiModelProperty(value = "可选参数对应图片")
    @Excel(name = "可选参数对应图片")
    private String paramImgUrl;

    /** 可选值编号 */
    @ApiModelProperty(value = "可选值编号")
    @Excel(name = "可选值编号")
    private String paramNum;

    /** 可选值的描述 */
    @ApiModelProperty(value = "可选值的描述")
    @Excel(name = "可选值的描述")
    private String paramDescribe;

    /** 商品信息ID(spuId) */
    @ApiModelProperty(value = "参数值ID, 可选参数值")
    @Excel(name = "商品信息ID(spuId)")
    private Long houseGoodsId;

    /** 规格参数ID */
    @ApiModelProperty(value = "规格参数ID")
    @Excel(name = "规格参数ID")
    private Long specParamId;

    /** 选配规格的价格 */
    @ApiModelProperty(value = "选配规格的价格")
    @Excel(name = "选配规格的价格")
    private Long valuePrice;

    /** 创建时间 */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    /** 更新时间 */
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updateDate;

    public Long getValuePrice() {
        return valuePrice;
    }

    public void setValuePrice(Long valuePrice) {
        this.valuePrice = valuePrice;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setParamImgUrl(String paramImgUrl)
    {
        this.paramImgUrl = paramImgUrl;
    }

    public String getParamImgUrl()
    {
        return paramImgUrl;
    }
    public void setParamNum(String paramNum)
    {
        this.paramNum = paramNum;
    }

    public String getParamNum()
    {
        return paramNum;
    }
    public void setParamDescribe(String paramDescribe)
    {
        this.paramDescribe = paramDescribe;
    }

    public String getParamDescribe()
    {
        return paramDescribe;
    }
    public void setHouseGoodsId(Long houseGoodsId)
    {
        this.houseGoodsId = houseGoodsId;
    }

    public Long getHouseGoodsId()
    {
        return houseGoodsId;
    }
    public void setSpecParamId(Long specParamId)
    {
        this.specParamId = specParamId;
    }

    public Long getSpecParamId()
    {
        return specParamId;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }
    public void setUpdateDate(Date updateDate)
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate()
    {
        return updateDate;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("paramImgUrl", getParamImgUrl())
                .append("paramNum", getParamNum())
                .append("paramDescribe", getParamDescribe())
                .append("houseGoodsId", getHouseGoodsId())
                .append("specParamId", getSpecParamId())
                .append("createDate", getCreateDate())
                .append("updateDate", getUpdateDate())
                .toString();
    }
}
